home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 21 / Cream of the Crop 21 (Terry Blount) (October 1996).iso / educate / mmtyp106.zip / SETUP.BAT < prev    next >
DOS Batch File  |  1995-11-09  |  5KB  |  146 lines

  1. @echo off
  2. cls
  3. echo  
  4. if exist config95.inf goto start
  5. echo About:  MasterMind Typing SETUP
  6. echo  
  7. echo To capture these instructions, key PrintScreen or Shift+PrintScreen.
  8. echo  
  9. echo To execute, please go to the directory where SETUP.bat is.
  10. echo It is on a floppy drive, typically A:, or in a temporary
  11. echo directory that you have provided on your hard disk.
  12. echo  
  13. echo When in the proper directory, please execute
  14. echo         SETUP
  15. if exist %windir%\startm~1\programs\nul goto nav95
  16. echo  
  17. echo One may navigate via:
  18. echo        Main, File Manager; or
  19. echo        Program Manager, File, Run, Browse.
  20. if "%OS%"=="Windows_NT" goto close
  21. echo  
  22. echo If your operating system is Windows 3.x, please do NOT run SETUP.
  23. echo For Win3.x, the installation program is CONFIG3X.EXE instead.
  24. goto close
  25. :nav95
  26. echo  
  27. echo One may navigate via:
  28. echo        My Computer; or
  29. echo        Start, Programs, Explorer.
  30. goto close
  31. :start
  32. if exist %windir%\..\nul md %windir%\..\$MM_cfg$
  33. set $MM_cfg$=%windir%\..\$MM_cfg$
  34. if exist %$MM_cfg$%\nul goto copy
  35. echo My apologies.  I cannot proceed because I cannot create temporary
  36. echo storage on the Windows drive.  Normally, SETUP works under
  37. echo Windows 95 or NT.
  38. echo  
  39. echo If your operating system is Windows 3.x, please do NOT run SETUP.
  40. echo For Win3.x, the installation program is CONFIG3X.EXE instead.
  41. set $MM_cfg$=
  42. goto close
  43. :copy
  44. echo Writing temporary, setup files takes a minute.
  45. echo Later, I shall erase these automatically.
  46. if not exist %windir%\startm~1\programs\nul copy config3x.inf %$MM_cfg$%\setup.inf
  47. if exist %windir%\startm~1\programs\nul copy config95.inf %$MM_cfg$%\setup.inf
  48. copy MenuSet.bat %$MM_cfg$%\MenuSet.bat
  49. copy MMBW.ico %$MM_cfg$%
  50. copy MMTYPE.tbk %$MM_cfg$%
  51. copy MMtype95.lnk %$MM_cfg$%\MMtype95.lnk
  52. copy README.txt %$MM_cfg$%
  53. copy TADA.wav %$MM_cfg$%
  54. xcopy *.exe %$MM_cfg$%\
  55. if errorlevel 1 goto errCopy
  56. rename %$MM_cfg$%\config3x.exe setup.exe
  57. xcopy *.dll %$MM_cfg$%\
  58. if not errorlevel 1 goto execute
  59. :errCopy
  60. echo  
  61. echo My apologies.  The copy attempt failed.  Does your hard disk have
  62. echo at least 2 megabytes free space?
  63. echo  
  64. del %$MM_cfg$%\*.exe
  65. del %$MM_cfg$%\*.dll
  66. del %$MM_cfg$%\m*.*
  67. del %$MM_cfg$%\readme.txt
  68. del %$MM_cfg$%\tada.wav
  69. del %$MM_cfg$%\setup.inf
  70. rd %$MM_cfg$%
  71. set $MM_cfg$=
  72. goto close
  73. :execute
  74. cls
  75. if not exist %windir%\startm~1\programs\nul goto bypass95
  76. echo  
  77. echo To reactivate this window if necessary, please
  78. echo click the MS-DOS 'setup' icon on the Taskbar.
  79. :bypass95
  80. echo  
  81. echo Please leave this window open until I advise closing it.
  82. %$MM_cfg$%\setup
  83. echo  
  84. echo After installation has run in its own window and
  85. echo README.txt has appeared, or if you rejected it, please
  86. pause
  87. echo  
  88. echo Now erasing setup files.
  89. del %$MM_cfg$%\*.exe
  90. del %$MM_cfg$%\*.dll
  91. del %$MM_cfg$%\m*.*
  92. del %$MM_cfg$%\readme.txt
  93. del %$MM_cfg$%\tada.wav
  94. del %$MM_cfg$%\setup.inf
  95. rd %$MM_cfg$%
  96. if not exist %$MM_cfg$%\nul echo OK erasure done.
  97. if exist %$MM_cfg$%\nul echo Trouble:  temporary %$MM_cfg$% not erased.
  98. set $MM_cfg$=
  99. if exist c:\mmtype\mmtype95.lnk goto MenuSet
  100. if exist %windir%\startm~1\programs\nul goto win95
  101. echo  
  102. echo If you later add Windows 95's user interface to this system,
  103. echo at that time please double-click 'MenuSet' in the MasterMind Typing
  104. echo folder of Win95.  MenuSet will put the 'MMtype95' keyboard icon on
  105. echo Win95's Start Programs menu for easier launch.
  106. goto close
  107. :win95
  108. echo  
  109. echo Please key Shift+PrintScreen to capture these instructions.
  110. echo  
  111. echo To finish installation elsewhere than C:\MMTYPE, one must edit the
  112. echo startup information.  Please go to the MasterMind Typing folder
  113. echo and RIGHTclick the 'MMtype95' keyboard icon.  Then choose
  114. echo Properties, Shortcut.
  115. echo  
  116. echo Unless Windows automatically has changed the 'Target' field as you
  117. echo want, please do it manually.  Retaining 'tbook.exe mmtype,' the
  118. echo 'Target' field needs your [drive] and [path] in the form:
  119. echo        [drive]:\[path]\tbook.exe  mmtype
  120. echo Upper/lower case is immaterial.  Then please copy just the same
  121. echo [drive]:\[path] into the 'Start in' field.
  122. echo  
  123. echo Next, OK the changes and test startup using the 'MMtype95' keyboard
  124. echo icon.  If MasterMind Typing launches all right, execute the
  125. echo MenuSet utility.  MenuSet copies the MMtype95 shortcut to the Start
  126. echo Programs menu for easier launch.
  127. echo  
  128. echo After printing this screen, please
  129. pause
  130. goto close
  131. :MenuSet
  132. if not exist %windir%\startm~1\programs\nul goto close
  133. echo  
  134. echo Writing to %windir%\startm~1\programs, Win95's Start Programs menu:
  135. copy c:\mmtype\mmtype95.lnk %windir%\startm~1\programs\MMtype95.lnk
  136. echo  
  137. echo The easiest way to launch MasterMind Typing is the 'MMtype95' keyboard
  138. echo icon on your Start Programs menu.  Alternatively, you may launch from
  139. echo the same icon in the C:\MMTYPE folder.
  140. echo  
  141. echo For any other questions, please see README.txt.
  142. :close
  143. echo  
  144. echo After reading messages if any, please close this window.
  145. if not exist %windir%\startm~1\programs\nul pause
  146.